<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Dict extends BaseModel
{
    use HasFactory;
    protected $table = 'sys_dict';
    public $timestamps = false;
    public function category()
    {
        return $this->belongsTo(Category::class);
    }
    public function scopeRelatedJoin($query)
    {
        $query->select($this->table . ".*");
        $query->creatorJoin();
    }
}
